import React, { Component } from 'react';
import { BrowserRouter as Router, Link } from "react-router-dom";

import RouterItem from "./routers/index"
import routerConfig from "./routers/config"

class App extends Component {
  render() {
    return (
      <Router>
        <div className="header">
          <ul>
            <li><Link to="/">运营系统</Link></li>
            <li><Link to="/report/one">报表统计</Link></li>
            <li><Link to="/user">用户系统</Link></li>
          </ul>
        </div>
        <div className="layout">
          <RouterItem routes={routerConfig} />
        </div>
      </Router>
    );
  }
}

export default App;
